package com.rpp.study.base;

/**
 * @Description
 * @Author rpp
 * @Date 2020/8/30 21:15 下午
 */
public enum BusinessCode {

    /**
     * 成功状态码
     */
    SUCCESS(200, "success"),

    /**
     * 失败状态码
     */
    ERROR(500, "服务器打瞌睡了,请稍后再试"),
    ;

    private int code;
    private String desc;


    BusinessCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
